<?php

/**
 * @package examples
 */

header('Content-type: text/html; charset=utf-8');

include 'Zend/Debug.php';
include '../../library/Zfbook/Debug.php';

// Utilisation d'une méthode Zend_Debug
//Zfbook_Debug::dump($_SERVER);

// Utilisation d'une méthode Zfbook_Debug
//Zfbook_Debug::dumpBackTrace();

class Test
{
    public function __toString()
    {
        return 'OBJ: ' . __CLASS__;
    }
    
    public function testDumpBackTrace()
    {
        echo Zfbook_Debug::dumpBackTrace();
    }
}

$test = new Test();
Zfbook_Debug::dump($test);
$test->testDumpBackTrace();
